package swingExtensions.demo;

import javax.swing.*;
import java.awt.*;

public class FrameDemo extends JFrame {
    public FrameDemo(String title) {
        super(title);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setPreferredSize(new Dimension(800, 600));
        this.pack();
        this.setLocationRelativeTo(null);
    }
}
